package me.shurufa.model;

import java.io.Serializable;

/**
 * 作者 : andy
 * 日期 : 16/3/30 19:30
 * 邮箱 : andyxialm@gmail.com
 * 描述 :
 */
public class UserRecentComment implements Serializable {

    /**
     * id : 233
     * user_id : 186
     * book_id : 29022
     * created_at : 1458850110
     * updated_at : 1459329937
     * book : {"id":"29022","subtitle":"@协和张羽 发给天下女人的私信","author":"张羽","pubdate":"2013-1","origin_title":"","image":"https://img1.doubanio.com/mpic/s24511478.jpg","pages":"311","publisher":"江苏人民出版社","title":"只有医生知道","alt_title":"","series":"","price":"35.00元","created_at":"1456366754","updated_at":"0","buy_url":"","stat":{"book_id":null,"rating":0,"rating_user_num":0,"view_num":0,"favorites_num":0,"share_num":0,"comment_num":0,"excerpt_num":0},"isbn":"9787214090065"}
     * comment : {"id":"474","book_id":"26231","item":"book","item_id":"0","user_id":"186","top_comment_id":"0","parent_comment_id":"0","content":"has and JFK's JFK","sub_num":"0","created_at":"0","updated_at":"0"}
     */

    private String id;
    private String user_id;
    private String book_id;
    private String created_at;
    private String updated_at;
    /**
     * id : 29022
     * subtitle : @协和张羽 发给天下女人的私信
     * author : 张羽
     * pubdate : 2013-1
     * origin_title :
     * image : https://img1.doubanio.com/mpic/s24511478.jpg
     * pages : 311
     * publisher : 江苏人民出版社
     * title : 只有医生知道
     * alt_title :
     * series :
     * price : 35.00元
     * created_at : 1456366754
     * updated_at : 0
     * buy_url :
     * stat : {"book_id":null,"rating":0,"rating_user_num":0,"view_num":0,"favorites_num":0,"share_num":0,"comment_num":0,"excerpt_num":0}
     * isbn : 9787214090065
     */

    private BookEntity book;
    /**
     * id : 474
     * book_id : 26231
     * item : book
     * item_id : 0
     * user_id : 186
     * top_comment_id : 0
     * parent_comment_id : 0
     * content : has and JFK's JFK
     * sub_num : 0
     * created_at : 0
     * updated_at : 0
     */

    private CommentEntity comment;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getBook_id() {
        return book_id;
    }

    public void setBook_id(String book_id) {
        this.book_id = book_id;
    }

    public String getCreated_at() {
        return created_at;
    }

    public void setCreated_at(String created_at) {
        this.created_at = created_at;
    }

    public String getUpdated_at() {
        return updated_at;
    }

    public void setUpdated_at(String updated_at) {
        this.updated_at = updated_at;
    }

    public BookEntity getBook() {
        return book;
    }

    public void setBook(BookEntity book) {
        this.book = book;
    }

    public CommentEntity getComment() {
        return comment;
    }

    public void setComment(CommentEntity comment) {
        this.comment = comment;
    }

    public static class BookEntity {
        private String id;
        private String subtitle;
        private String author;
        private String pubdate;
        private String origin_title;
        private String image;
        private String pages;
        private String publisher;
        private String title;
        private String alt_title;
        private String series;
        private String price;
        private String created_at;
        private String updated_at;
        private String buy_url;
        /**
         * book_id : null
         * rating : 0
         * rating_user_num : 0
         * view_num : 0
         * favorites_num : 0
         * share_num : 0
         * comment_num : 0
         * excerpt_num : 0
         */

        private StatEntity stat;
        private String isbn;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getSubtitle() {
            return subtitle;
        }

        public void setSubtitle(String subtitle) {
            this.subtitle = subtitle;
        }

        public String getAuthor() {
            return author;
        }

        public void setAuthor(String author) {
            this.author = author;
        }

        public String getPubdate() {
            return pubdate;
        }

        public void setPubdate(String pubdate) {
            this.pubdate = pubdate;
        }

        public String getOrigin_title() {
            return origin_title;
        }

        public void setOrigin_title(String origin_title) {
            this.origin_title = origin_title;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public String getPages() {
            return pages;
        }

        public void setPages(String pages) {
            this.pages = pages;
        }

        public String getPublisher() {
            return publisher;
        }

        public void setPublisher(String publisher) {
            this.publisher = publisher;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getAlt_title() {
            return alt_title;
        }

        public void setAlt_title(String alt_title) {
            this.alt_title = alt_title;
        }

        public String getSeries() {
            return series;
        }

        public void setSeries(String series) {
            this.series = series;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getCreated_at() {
            return created_at;
        }

        public void setCreated_at(String created_at) {
            this.created_at = created_at;
        }

        public String getUpdated_at() {
            return updated_at;
        }

        public void setUpdated_at(String updated_at) {
            this.updated_at = updated_at;
        }

        public String getBuy_url() {
            return buy_url;
        }

        public void setBuy_url(String buy_url) {
            this.buy_url = buy_url;
        }

        public StatEntity getStat() {
            return stat;
        }

        public void setStat(StatEntity stat) {
            this.stat = stat;
        }

        public String getIsbn() {
            return isbn;
        }

        public void setIsbn(String isbn) {
            this.isbn = isbn;
        }

        public static class StatEntity {
            private Object book_id;
            private int rating;
            private int rating_user_num;
            private int view_num;
            private int favorites_num;
            private int share_num;
            private int comment_num;
            private int excerpt_num;

            public Object getBook_id() {
                return book_id;
            }

            public void setBook_id(Object book_id) {
                this.book_id = book_id;
            }

            public int getRating() {
                return rating;
            }

            public void setRating(int rating) {
                this.rating = rating;
            }

            public int getRating_user_num() {
                return rating_user_num;
            }

            public void setRating_user_num(int rating_user_num) {
                this.rating_user_num = rating_user_num;
            }

            public int getView_num() {
                return view_num;
            }

            public void setView_num(int view_num) {
                this.view_num = view_num;
            }

            public int getFavorites_num() {
                return favorites_num;
            }

            public void setFavorites_num(int favorites_num) {
                this.favorites_num = favorites_num;
            }

            public int getShare_num() {
                return share_num;
            }

            public void setShare_num(int share_num) {
                this.share_num = share_num;
            }

            public int getComment_num() {
                return comment_num;
            }

            public void setComment_num(int comment_num) {
                this.comment_num = comment_num;
            }

            public int getExcerpt_num() {
                return excerpt_num;
            }

            public void setExcerpt_num(int excerpt_num) {
                this.excerpt_num = excerpt_num;
            }
        }
    }

    public static class CommentEntity {
        private String id;
        private String book_id;
        private String item;
        private String item_id;
        private String user_id;
        private String top_comment_id;
        private String parent_comment_id;
        private String content;
        private String sub_num;
        private String created_at;
        private String updated_at;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getBook_id() {
            return book_id;
        }

        public void setBook_id(String book_id) {
            this.book_id = book_id;
        }

        public String getItem() {
            return item;
        }

        public void setItem(String item) {
            this.item = item;
        }

        public String getItem_id() {
            return item_id;
        }

        public void setItem_id(String item_id) {
            this.item_id = item_id;
        }

        public String getUser_id() {
            return user_id;
        }

        public void setUser_id(String user_id) {
            this.user_id = user_id;
        }

        public String getTop_comment_id() {
            return top_comment_id;
        }

        public void setTop_comment_id(String top_comment_id) {
            this.top_comment_id = top_comment_id;
        }

        public String getParent_comment_id() {
            return parent_comment_id;
        }

        public void setParent_comment_id(String parent_comment_id) {
            this.parent_comment_id = parent_comment_id;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getSub_num() {
            return sub_num;
        }

        public void setSub_num(String sub_num) {
            this.sub_num = sub_num;
        }

        public String getCreated_at() {
            return created_at;
        }

        public void setCreated_at(String created_at) {
            this.created_at = created_at;
        }

        public String getUpdated_at() {
            return updated_at;
        }

        public void setUpdated_at(String updated_at) {
            this.updated_at = updated_at;
        }
    }
}
